class Student:
	def __init__(self, num, name, age, sex, height, weight, score, address, phone):
		self.num = num
		self.name = name
		self.age = age
		self.sex = sex
		self.height = height
		self.weight = weight
		self.score = score
		self.address = address
		self.phone = phone 

	def study(self, time):
		print(f"{self.name}正在学习, 学习时间为{time}小时")

	def play_games(self, game):
		print(f"{self.name}正在玩{game}")

	def code(self, lines):
		print(f"{self.name}正在写代码, 写了{lines}行")

	def  sum(self,*a):
		sum = 0
		for i in a:
			sum += i
		return sum	
	
class Car:
	def __init__(self, type, wheels, color, weight, oil_tank_size):
		self.type = type
		self.wheels = wheels
		self.color = color
		self.weight = weight
		self.oil_tank_size = oil_tank_size

	def run(self, function):
		print(f"{self.type}正在{function}")
fll = Car("法拉利", 4, "红色", 1500, 60)
bm = Car("宝马", 4, "黑色", 2000, 50)
lm =Car("铃木", 4, "白色", 1200, 40)
tlj = Car("拖拉机", 4, "绿色", 3000, 80)

class Laptop:
	def __init__(self, type, standby_time, color, weight, cpu, ram, hard_disk):
		self.type= type
		self.standby_time = standby_time
		self.color = color
		self.weight = weight
		self.cpu = cpu
		self.ram = ram
		self.hard_disk = hard_disk

	def play_games(self, game):
		print(f"正在用{self.type}玩{game}")

	def work(self):
		print(f"正在用{self.type}办公")


class monkey:
	def __init__(self, type, sex, color, weight):
		self.type = type
		self.sex = sex
		self.color = color
		self.weight = weight

	def make_fire(self, materials):
		print(f"{self.type}正在用{materials}生火")

	def learn(self, *skills):
		print(f"{self.type}正在学习{', '.join(skills)}")
